<template>
  <div class="posttable">
    <el-row style="margin-bottom: 10px;">
      <el-col :span="24" style="padding-right: 30px;padding-left: 40px;margin-top: 10px;">
        <el-row>
          <el-col>
            <el-col style="width:20%;" class="bot">
              <el-row>
                <el-col>
                  <p class="title">客户名称</p>
                </el-col>
                <el-col>
                  <p class="text">{{workTaskByjfVo.customerName}}</p>
                </el-col>
              </el-row>
            </el-col>
            <el-col style="width:20%;" class="bot">
              <el-row>
                <el-col>
                  <p class="title">需求名称</p>
                </el-col>
                <el-col>
                  <p class="text">{{workTaskByjfVo.requireName}}</p>
                </el-col>
              </el-row>
            </el-col>
            <el-col style="width:20%;" class="bot">
              <el-row>
                <el-col>
                  <p class="title">职位级别</p>
                </el-col>
                <el-col>
                  <p class="text">{{workTaskByjfVo.postLevel}}</p>
                </el-col>
              </el-row>
            </el-col>
            <el-col style="width:20%;" class="bot">
              <el-row>
                <el-col>
                  <p class="title">姓名</p>
                </el-col>
                <el-col>
                  <p class="text">{{workTaskByjfVo.name}}</p>
                </el-col>
              </el-row>
            </el-col>
            <el-col style="width:20%;" class="bot">
              <el-row>
                <el-col>
                  <p class="title">笔试</p>
                </el-col>
                <el-col>
                  <p class="text">{{intweBackCandidate.write}}</p>
                </el-col>
              </el-row>
            </el-col>
          </el-col>

          <el-col>           
            <el-col style="width:20%;" class="bot" >
              <el-row>
                <el-col>
                  <p class="title">面试次数</p>
                </el-col>
                <el-col>
                  <p class="text">{{workTaskByjfVo.type}}</p>
                </el-col>
              </el-row>
            </el-col>
            <el-col style="width:20%;" class="bot" >
              <el-row>
                <el-col>
                  <p class="title">约面时间</p>
                </el-col>
                <el-col>
                  <p class="text">{{workTaskByjfVo.candidateTime}}</p>
                </el-col>
              </el-row>
            </el-col>
            <el-col style="width:20%;" class="bot" >
              <el-row>
                <el-col>
                  <p class="title">到达时间</p>
                </el-col>
                <el-col>
                  <p class="text">{{intweBackCandidate.arriveTime}}</p>
                </el-col>
              </el-row>
            </el-col>
            <el-col style="width:20%;" class="bot" >
              <el-row>
                <el-col>
                  <p class="title">面试时长</p>
                </el-col>
                <el-col>
                  <p class="text">{{intweBackCandidate.interviewTime}}</p>
                </el-col>
              </el-row>
            </el-col>
            <el-col style="width:20%;" class="bot" >
              <el-row>
                <el-col>
                  <p class="title">面试结果</p>
                </el-col>
                <el-col>
                  <p class="text">{{intweBackCandidate.interviewResult}}</p>
                </el-col>
              </el-row>
            </el-col>
          </el-col>

          <el-col>            
            <el-col style="width:20%;" class="bot">
              <el-row>
                <el-col>
                  <p class="title">候选人形象</p>
                </el-col>
                <el-col>
                  <p class="text">{{intweBackCandidate.interviewImage}}</p>
                </el-col>
              </el-row>
            </el-col>

            <el-col style="width:20%;" class="bot" >
              <el-row>
                <el-col>
                  <p class="title">最终结果</p>
                </el-col>
                <el-col>
                  <p class="text">{{intweBackCandidate.finalResult}}</p>
                </el-col>
              </el-row>
            </el-col>          
          </el-col>

    
          <el-col class="bot">
            <el-row>
              <el-col>
                <p class="title">未通过原因</p>
              </el-col>
              <el-col>
                <p class="text">{{intweBackCandidate.referReason}}</p>
              </el-col>
            </el-row>
          </el-col>
          <el-col class="bot">
            <el-row>
              <el-col>
                <p class="title">筛选简历目前存在的问题</p>
              </el-col>
              <el-col>
                <p class="text">{{intweBackCandidate.question}}</p>
              </el-col>
            </el-row>
          </el-col>

        </el-row>
      </el-col>
    </el-row>
  </div>
</template>
<script>
import axios from "axios";
import qs from "qs";
import moment from "moment";

export default {
  name: "workdetail",
  props:{
    detailCode: {
      type: Object
    }
    },
  data() {
    return {
      id: null,
      intweBackCandidate:{},
      workTaskByjfVo:{},
      show: true
    };
  },
  created() {
    this.name = this.detailCode.name;
    this.customerName = this.detailCode.customerName;
    this.type = this.detailCode.type;

    this.getdetail();
  },
  methods: {
    getdetail() {
        axios.post(this.url + "/worktaskByjf/selByName", {
        name: this.name,
        customerName:this.customerName,
        type:this.type
      }).then(res => {
        this.unlogin(res.data.code)
        if (res.data.code == 200) {
          this.intweBackCandidate = res.data.data.intweBackCandidate;
          this.workTaskByjfVo = res.data.data.workTaskByjfVo;
        }
      })
      
    }
  }
};
</script>
<style scoped>
.title {
  color: #757575;
  margin-bottom: 10px;
  font-size: 14px;
}

.text {
  color: #333333;
  font-weight: 700;
  font-size: 14px;
  word-break: break-all;
  white-space: pre-line;
}

.bot {
  margin-bottom: 30px;
}

.Line {
  border: 0.5px solid #e8e8e8;
  margin-bottom: 30px;
}

@media screen and (min-width: 1200px) and (max-width: 1900px) {
  .word {
    word-break: break-all;
    width: 200px;
  }
}
</style>
